package com.gable.exhibition.service;

import com.gable.common.util.ReturnResultUtil;
import com.gable.exhibition.model.User;
import com.gable.exhibition.view.ContractEstimateSendView;
import com.gable.exhibition.view.ImportExcelContractModel;
import com.gable.exhibition.view.ParameterView;

import java.util.List;

/**
 * Created by mj on 2018/2/9.
 */
public interface ContractService {

    ReturnResultUtil contractList(ParameterView parameterView);

    ReturnResultUtil deviceByContract(ParameterView parameterView);

    /**
     * 获取合同详情
     * @param id
     * @Create date 2018/2/22
     * @Create user jacky
     * @return
     */
    ReturnResultUtil querycontractInfo(Long id);

    /**
     * 预计发货明细
     * @param estimateId
     * @Create user jacky
     * @Create date 2018/2/22
     * @return
     */
    ReturnResultUtil estimateQuantity(Long estimateId);

    /**
     * 获取合同设备的预计发货，实际发货明细
     * @param contractDeviceId
     * @Create user jacky
     * @Create date 2018/2/22
     * @return
     */
    ReturnResultUtil deviceEstimateActual(Long contractDeviceId);

    /**
     * 插入合同信息，数据源来自Excel
     * @param list
     * @param user
     * @Create user jacky
     * @Create date 2018/2/24
     * @return
     */
    ReturnResultUtil saveContractByExcel(List<ImportExcelContractModel> list, User user);

    /**
     * 插入合同预计发货信息，数据源来自Excel
     * @param cList
     * @param user
     * @Create user jacky
     * @Create date 2018/2/24
     * @return
     */
    ReturnResultUtil saveEstimateByExecl(List<ContractEstimateSendView> cList,User user);
}
